
let baseUrl;
if(process.env.NODE_ENV === 'development'){
    baseUrl = "http://localhost:7000"
}else{
    baseUrl = "http://121.5.109.215:8000"
}


const systemServ = baseUrl + "/system-serv";
const loginUrl = systemServ + "/login";
const getCodeUrl = systemServ + "/captcha.jpg";
const getUserInfoUrl = systemServ + "/auth";
const logoutUrl = systemServ + "/logout";
const getPubKeyUrl = systemServ + "/public_key";
const userRegisterUrl = systemServ + "/register";
const updateUserInfoUrl = systemServ + "/update_user_comm";
const simpleUserUrl = systemServ + "/simple_user";
const doFollowUserUrl = systemServ + "/follow";
const cancelFollowUserUrl = systemServ + "/cancel_follow";


const imageServ = baseUrl + "/image-serv";
const getImagesUrl = imageServ + "/images";
const uploadImageUrl = imageServ + "/file/image";
const addImageUrl = imageServ + "/image";
const likeImageUrl = imageServ + "/like";
const cancelLikeImageUrl = imageServ + "/cancel_like";
const collectImageUrl = imageServ + "/collect";
const cancelCollectImageUrl = imageServ + "/cancel_collect";
const getLikeImagesUrl = imageServ + "/likes";
const getCollectedImagesUrl = imageServ + "/collections";
const getNoticesUrl = imageServ + "/notices";
const noticeUrl = imageServ + "/notice";
const imageDailyRankUrl = imageServ + "/daily_rank";
const getKeywordsByPrefixUrl = imageServ + "/keywords";
const queryByKeywordsUrl = imageServ + "/images_keyword";
const getFollowedUsersImagesUrl = imageServ + "/images_follow";
const getOssTokenUrl = imageServ + "/file/token";
const getImagesByLabelNameUrl = imageServ + "/label_images";


const commentServ = baseUrl + "/comment-serv";
const addCommentUrl = commentServ + "/comment";
const getCommentsUrl = commentServ + "/comments";

const recoServ = baseUrl + "/reco-serv";
const getRecommendImagesUrl = recoServ + "/images";

export default {
	loginUrl,
	getCodeUrl,
	getUserInfoUrl,
	getImagesUrl,
	uploadImageUrl,
	addImageUrl,
	addCommentUrl,
	getCommentsUrl,
	logoutUrl,
	likeImageUrl,
	cancelLikeImageUrl,
	collectImageUrl,
	cancelCollectImageUrl,
	getLikeImagesUrl,
	getCollectedImagesUrl,
	getNoticesUrl,
	noticeUrl,
	getPubKeyUrl,
	userRegisterUrl,
	imageDailyRankUrl,
	getKeywordsByPrefixUrl,
	updateUserInfoUrl,
	simpleUserUrl,
	getFollowedUsersImagesUrl,
	doFollowUserUrl,
	cancelFollowUserUrl,
	getOssTokenUrl,
	queryByKeywordsUrl,
	getImagesByLabelNameUrl,
	getRecommendImagesUrl
}
